<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="css/select2.min.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
		.file-box{ position:relative;width:340px}
		.uploadbtn{ background-color:#FFF; border:1px solid #CDCDCD;font-size: 14px}
		.file{ position:absolute; top:0; right:80px; height:24px; filter:alpha(opacity:0);opacity: 0;width:174px } 
	</style>
	<title>易幻後臺</title>
</head>
<body>
<form id="editfrom" class="form-horizontal">
	<input type="hidden" id="more" name="more" value='one'>	
	<!-- 任务配置 -->
	<div class="row-fluid" style="padding:3px;">
		<div class="form-group">
			<div class="col-sm-12 text-center"><h4>韩国平台任务管理</h4></div>
		</div>
		<div class="form-group">
			<label for="taskName" class="col-sm-2 control-label">任务名称</label>
			<div class="col-sm-2">
				<input type="text" name="taskName" id="taskName" class="form-control input-sm">
			</div>
			<label for="activityStartTime" class="col-sm-2 control-label">任务开始时间</label>
			<div class="col-sm-2">
				<input type="text" name="activityStartTime" id="activityStartTime" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</div>
			<label for="activityEndTime" class="col-sm-2 control-label">任务结束时间</label>
			<div class="col-sm-2">
				<input type="text" name="activityEndTime" id="activityEndTime" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</div>
		</div>
		<div class="form-group">
			<label for="gameCode" class="col-sm-2 control-label">游戏</label>
			<div class="col-sm-2">				
				<select name="gameCode" class="select2_category" placeholder="游戏">
                    <option value="twllyt">六龙御天</option>
                </select>
			</div>
			<label for="isTestData" class="col-sm-2 control-label">是否测试数据</label>
			<div class="col-sm-2">
				<select name="isTestData" class="select2_category" placeholder="是否测试数据">
                    <option value="1">是</option>
                    <option value="0">否</option>
                </select>
			</div>
			<label for="deleted" class="col-sm-2 control-label">上架状态</label>
			<div class="col-sm-2">
                <select name="deleted" class="select2_category" placeholder="状态">
                    <option value="0">上架</option>
                    <option value="1">移除</option>
                    <option value="2">下架</option>
                </select>
			</div>
		</div>
	</div>
	
	<!-- 礼包1配置 -->
	<div class="row-fluid" style="padding:3px;" id="panel1">		
		<div class="panel panel-default">
	  		<div class="panel-heading">礼包1配置</div>
	  		<div class="panel-body">				
				<div class="form-group">
					<div class="col-sm-4">
						<button type="button" class="btn btn-sm btn-primary" onclick="importSerial(1);"><i class="icon-upload-alt"></i>&nbsp;导入序列号</button>
						<button type="button" class="btn btn-sm btn-danger" onclick="clearInfo(1);"><i class="icon-remove"></i>&nbsp;清空礼包</button>
						<input type="hidden" id="id1" name="id1" />
					</div>
					<div class="col-sm-4">
						<b><span id="autoIncrId1"></span></b>
					</div>
				</div>
				<div class="form-group">
					<label for="category" class="col-sm-2 control-label">礼包种类</label>
					<div class="col-sm-2">
		                <select name="category1" id="category1" class="select2_category" placeholder="请选择礼包种类">
		                    <option value="task">成就</option>
		                    <option value="pointTask">积分任务</option>
		                    <option value="gift">礼包</option>
		                    <option value="storeGift">储值礼包</option>
		                    <option value="slot_machine">老虎机</option>
		                </select>
					</div>
					<label for="goodsType" class="col-sm-2 control-label">任务类型</label>
					<div class="col-sm-2">
		                <select name="goodsType1" id="goodsType1" class="select2_category" placeholder="请选择任务类型">
		                    <option value=""></option>
						    <option value="task1">任务1（认证手机）</option>
						    <option value="task2">任务2（创建角色）</option>
						    <option value="task3">任务3（账号转换）</option>
						    <option value="task4">任务4（储值任务）</option>
						    <option value="task5">任务5（连续登陆）</option>
						    <option value="task6">任务6（视频点赞）</option>
						    <option value="task7">任务7（活动类型储值）</option>
						    <option value="task8">任务8（活动类型登陆）</option>
						    <option value="task9">任务9（限时老手回归）</option>
						    <option value="task10">任务10（常驻老手回归）</option>
						    <option value="task11">任务11（每日储值）</option>
						    <option value="task12">任务12（每日登陆）</option>
		                </select>
					</div>
					<label for="isSerail" class="col-sm-2 control-label">奖励类型</label>
					<div class="col-sm-2">
		                <select name="isSerail1" id="isSerail1" class="select2_category" placeholder="请选择奖励类型">
						    <option value="1">序列号</option>
						    <option value="0">积分&amp;经验</option>
						    <option value="2">免费点</option>
						    <option value="3">点卡</option>
						    <option value="4">游戏道具</option>
						    <option value="5">游戏内发奖</option>
						    <option value="6">优惠券</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="goodsName" class="col-sm-2 control-label">礼包名称</label>
					<div class="col-sm-2">
						<input type="text" name="goodsName1" id="goodsName1" class="form-control input-sm">
					</div>
					<label for="quantity" class="col-sm-2 control-label">赠送积分值</label>
					<div class="col-sm-2">
						<input type="text" name="quantity1" id="quantity1" class="form-control input-sm">
					</div>
					<label for="needGold" class="col-sm-2 control-label">需扣除积分值</label>
					<div class="col-sm-2">
						<input type="text" name="needGold1" id="needGold1" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">
					<label for="propId" class="col-sm-2 control-label">优惠券/道具ID</label>
					<div class="col-sm-2">
						<input type="text" name="propId1" id="propId1" class="form-control input-sm">
					</div>
					<label for="propNum" class="col-sm-2 control-label">赠送数量</label>
					<div class="col-sm-2">
		                <input type="text" name="propNum1" id="propNum1" class="form-control input-sm">
					</div>
					<label for="addExperience" class="col-sm-2 control-label">赠送经验值</label>
					<div class="col-sm-2">
						<input type="text" name="addExperience1" id="addExperience1" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">				
					<label for="awardIcons" class="col-sm-2 control-label">奖励介绍图片</label>
					<div class="col-sm-4">
						<input type="text" name="awardIcons1" id="awardIcons1" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
					<label for="serialEndTime" class="col-sm-2 control-label">序列号领取结束时间</label>
					<div class="col-sm-2">
		                <input type="text" name="serialEndTime1" id="serialEndTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</div>
				</div>
				<div class="form-group">				
					<label for="icon" class="col-sm-2 control-label">图片</label>
					<div class="col-sm-4">
						<input type="text" name="icon1" id="icon1" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
				</div>
				<div class="form-group">				
					<label for="awardDesc" class="col-sm-2 control-label">礼包描述</label>
					<div class="col-sm-10">
						<input type="text" name="awardDesc1" id="awardDesc1" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">				
					<label for="awardRule" class="col-sm-2 control-label">奖励规则</label>
					<div class="col-sm-10">
						<input type="text" name="awardRule1" id="awardRule1" class="form-control input-sm">
					</div>
				</div>
				
				<ul class="nav nav-tabs" role="tablist">
				    <li role="presentation" class="active"><a href="#user1" aria-controls="user1" role="tab" data-toggle="tab">登录注册奖励条件</a></li>
				    <li role="presentation"><a href="#pay1" aria-controls="pay1" role="tab" data-toggle="tab">储值奖励条件</a></li>
				    <li role="presentation"><a href="#game1" aria-controls="game1" role="tab" data-toggle="tab">游戏和角色奖励条件</a></li>
				    <li role="presentation"><a href="#special1" aria-controls="special1" role="tab" data-toggle="tab">特殊奖励条件</a></li>
				    <li role="presentation"><a href="#loss1" aria-controls="loss1" role="tab" data-toggle="tab">老玩家回归奖励条件</a></li>
				    <li role="presentation"><a href="#point1" aria-controls="point1" role="tab" data-toggle="tab">积分任务条件</a></li>
				</ul>
				
				<div class="tab-content">
					&nbsp;&nbsp;
				    <div role="tabpanel" class="tab-pane active" id="user1">
					    <div class="form-group">
							<label for="todayLogin" class="col-sm-2 control-label">今天是否登录</label>
							<div class="col-sm-2">
								 <select name="todayLogin1" id="todayLogin1" class="select2_category">
									<option value=""></option>
									<option value="1">是</option>
									<option value="0">否</option>
								</select>
							</div>
							<label for="loginDayStartTime" class="col-sm-2 control-label">登录开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayStartTime1" id="loginDayStartTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loginDayEndTime" class="col-sm-2 control-label">登录结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayEndTime1" id="loginDayEndTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="loginAddUp" class="col-sm-2 control-label">登入天数是否累计</label>
							<div class="col-sm-2">
								 <select name="loginAddUp1" id="loginAddUp1" class="select2_category">
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
							<label for="loginType" class="col-sm-2 control-label">登录方式</label>
							<div class="col-sm-2">
								<input type="text" name="loginType1" id="loginType1" placeholder="多个用英文逗号隔开：efun,fb" class="form-control">
							</div>
						</div>	
						<div class="form-group">
							<label for="isBeforeGiftStartTime" class="col-sm-2 control-label">活动前注册</label>
							<div class="col-sm-2">
								 <select name="isBeforeGiftStartTime1" id="isBeforeGiftStartTime1" class="select2_category">
								 	<option value=""></option>
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="registerEndTime" class="col-sm-2 control-label">截止注册时间</label>
							<div class="col-sm-2">
								<input type="text" name="registerEndTime1" id="registerEndTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>	
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="pay1">
				    	<div class="form-group">
							<label for="isFirstStore" class="col-sm-2 control-label">是否首充</label>
							<div class="col-sm-2">
								<select name="isFirstStore1" id="isFirstStore1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeAmount" class="col-sm-2 control-label">储值金额</label>
							<div class="col-sm-2">
								<input type="text" name="storeAmount1" id="storeAmount1" class="form-control input-sm">
							</div>
							<label for="stone" class="col-sm-2 control-label">储值游戏币</label>
							<div class="col-sm-2">
								<input type="text" name="stone1" id="stone1" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="stoneRelated" class="col-sm-2 control-label">游戏币关联其他礼包</label>
							<div class="col-sm-2">
								 <select name="stoneRelated1" id="stoneRelated1" class="select2_category">
									<option value="0">不关联</option>
									<option value="1">关联</option>
								</select>
							</div>
							<label for="storeStartTime" class="col-sm-2 control-label">储值开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeStartTime1" id="storeStartTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="storeEndTime" class="col-sm-2 control-label">储值结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeEndTime1" id="storeEndTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="todayStore" class="col-sm-2 control-label">今天是否要储值</label>
							<div class="col-sm-2">
								<select name="todayStore1" id="todayStore1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="payType" class="col-sm-2 control-label">储值金流</label>
							<div class="col-sm-2">
								<input type="text" name="payType1" id="payType1" class="form-control input-sm">
							</div>
							<label for="gameCodes" class="col-sm-2 control-label">储值游戏</label>
							<div class="col-sm-2">
								<input type="text" name="gameCodes1" id="gameCodes1" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="singleOrder" class="col-sm-2 control-label">是否单笔储值</label>
							<div class="col-sm-2">
								<select name="singleOrder1" id="singleOrder1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeDays" class="col-sm-2 control-label">累计储值天数</label>
							<div class="col-sm-2">
								<input type="text" name="storeDays1" id="storeDays1" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="game1">
					    <div class="form-group">
							<label for=playedGames class="col-sm-2 control-label">玩过的游戏</label>
							<div class="col-sm-2">
								<input type="text" name="playedGames1" id="playedGames1" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
							<label for="isOneGame" class="col-sm-2 control-label">游戏条件</label>
							<div class="col-sm-2">
								<select name="isOneGame1" id="isOneGame1" class="select2_category">
									<option value="1">其中之一</option>
									<option value="0">全部</option>
								</select>
							</div>
							<label for="hasGameRole" class="col-sm-2 control-label">是否创角</label>
							<div class="col-sm-2">
								 <select name="hasGameRole1" id="hasGameRole1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="roleLevel" class="col-sm-2 control-label">角色等级</label>
							<div class="col-sm-2">
								<input type="text" name="roleLevel1" id="roleLevel1" class="form-control input-sm">
							</div>
							<label for="limitTime" class="col-sm-2 control-label">时间限制</label>
							<div class="col-sm-2">
								<input type="text" name="limitTime1" id="limitTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="special1">
				    	<div class="form-group">
							<label for="isBindAccount" class="col-sm-2 control-label">是否绑定账号</label>
							<div class="col-sm-2">
								<select name="isBindAccount1" id="isBindAccount1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
									<option value="2">空</option>
								</select>
							</div>
							<label for="isOneDayOnce" class="col-sm-2 control-label">是否每天领取一次</label>
							<div class="col-sm-2">
								<select name="isOneDayOnce1" id="isOneDayOnce1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="newPlayerPermission" class="col-sm-2 control-label">是否只有新用户可领取</label>
							<div class="col-sm-2">
								<select name="newPlayerPermission1" id="newPlayerPermission1" class="select2_category">
									<option value=""></option>
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="isAuthPhone" class="col-sm-2 control-label">是否绑定手机</label>
							<div class="col-sm-2">
								 <select name="isAuthPhone1" id="isAuthPhone1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="isOnePhoneOnce" class="col-sm-2 control-label">相同手机只能领取一次</label>
							<div class="col-sm-2">
								<select name="isOnePhoneOnce1" id="isOnePhoneOnce1" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="loss1">
				    	<div class="form-group">
							<label for="loseStartTime" class="col-sm-2 control-label">流失开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseStartTime1" id="loseStartTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseEndTime" class="col-sm-2 control-label">流失截止时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseEndTime1" id="loseEndTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="nextLoginTime" class="col-sm-2 control-label">回归时间</label>
							<div class="col-sm-2">
								<input type="text" name="nextLoginTime1" id="nextLoginTime1" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseDays" class="col-sm-2 control-label">玩家流失天数</label>
							<div class="col-sm-2">
								<input type="text" name="loseDays1" id="loseDays1" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="point1">
				    	<div class="form-group">
							<label for="taskName" class="col-sm-2 control-label">积分任务名称</label>
							<div class="col-sm-2">
								 <select name="taskName1" id="taskName1" class="select2_category">
									<option value="">请选择</option>
									<option value="downloadApp">下载APP</option>
									<option value="dailySignin">每日签到</option>
									<option value="fbCommentNews">FB评论资讯</option>
									<option value="shareNews">分享资讯</option>
									<option value="firstCompleteEmail">首次完善邮箱</option>
									<option value="firstCompletePhone">首次完善手机</option>
									<option value="firstCompleteIdCard">首次完善身份证件号码</option>
									<option value="firstCompleteBirthday">首次完善生日</option>
									<option value="firstCompleteSex">首次完善性别</option>
									<option value="firstCompleteName">首次完善姓名</option>
									<option value="firstSharePlatform">首次分享平台</option>
									<option value="firstStorePlatform">首次平台储值</option>
									<option value="firstUploadIcon">首次上传头像</option>
									<option value="firstGameVote">首次游戏评论</option>
									<option value="downloadGame">下载游戏</option>
									<option value="focusFB">关注官方FaceBook</option>
									<option value="dailyStore">每天充值</option>
									<option value="gameLevel">游戏等级</option>
									<option value="completePaper">完成调查问卷</option>
									<option value="dailyShare">每日分享</option>
									<option value="shareGame">指定游戏分享</option>
									<option value="seeVideo">观看完整视频</option>
									<option value="likeVideo">点赞视频</option>
								</select>
							</div>
						</div>
				    </div>
				</div>
	  		</div>
		</div>
	</div>
	
	<!-- 礼包2配置 -->
	<div class="row-fluid" style="padding:3px;display:none;" id="panel2">		
		<div class="panel panel-default">
	  		<div class="panel-heading">礼包2配置</div>
	  		<div class="panel-body">				
				<div class="form-group">
					<div class="col-sm-4">
						<button type="button" class="btn btn-sm btn-primary" onclick="copyInfo(2);"><i class="icon-copy"></i>&nbsp;复制礼包1</button>
						<button type="button" class="btn btn-sm btn-primary" onclick="importSerial(2);"><i class="icon-upload-alt"></i>&nbsp;导入序列号</button>
						<button type="button" class="btn btn-sm btn-danger" onclick="clearInfo(2);"><i class="icon-remove"></i>&nbsp;清空礼包</button>
						<input type="hidden" id="id2" name="id2" />
					</div>					
					<div class="col-sm-4">
						<b><span id="autoIncrId2"></span></b>
					</div>
				</div>
				<div class="form-group">
					<label for="category" class="col-sm-2 control-label">礼包种类</label>
					<div class="col-sm-2">
		                <select name="category2" id="category2" class="select2_category" placeholder="请选择礼包种类">
		                    <option value="task">成就</option>
		                    <option value="pointTask">积分任务</option>
		                    <option value="gift">礼包</option>
		                    <option value="storeGift">储值礼包</option>
		                    <option value="slot_machine">老虎机</option>
		                </select>
					</div>
					<label for="goodsType" class="col-sm-2 control-label">任务类型</label>
					<div class="col-sm-2">
		                <select name="goodsType2" id="goodsType2" class="select2_category" placeholder="请选择任务类型">
		                    <option value=""></option>
						    <option value="task1">任务1（认证手机）</option>
						    <option value="task2">任务2（创建角色）</option>
						    <option value="task3">任务3（账号转换）</option>
						    <option value="task4">任务4（储值任务）</option>
						    <option value="task5">任务5（连续登陆）</option>
						    <option value="task6">任务6（视频点赞）</option>
						    <option value="task7">任务7（活动类型储值）</option>
						    <option value="task8">任务8（活动类型登陆）</option>
						    <option value="task9">任务9（限时老手回归）</option>
						    <option value="task10">任务10（常驻老手回归）</option>
						    <option value="task11">任务11（每日储值）</option>
						    <option value="task12">任务12（每日登陆）</option>
		                </select>
					</div>
					<label for="isSerail" class="col-sm-2 control-label">奖励类型</label>
					<div class="col-sm-2">
		                <select name="isSerail2" id="isSerail2" class="select2_category" placeholder="请选择奖励类型">
						    <option value="1">序列号</option>
						    <option value="0">积分&amp;经验</option>
						    <option value="2">免费点</option>
						    <option value="3">点卡</option>
						    <option value="4">游戏道具</option>
						    <option value="5">游戏内发奖</option>
						    <option value="6">优惠券</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="goodsName" class="col-sm-2 control-label">礼包名称</label>
					<div class="col-sm-2">
						<input type="text" name="goodsName2" id="goodsName2" class="form-control input-sm">
					</div>
					<label for="quantity" class="col-sm-2 control-label">赠送积分值</label>
					<div class="col-sm-2">
						<input type="text" name="quantity2" id="quantity2" class="form-control input-sm">
					</div>
					<label for="needGold" class="col-sm-2 control-label">需扣除积分值</label>
					<div class="col-sm-2">
						<input type="text" name="needGold2" id="needGold2" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">
					<label for="propId" class="col-sm-2 control-label">优惠券/道具ID</label>
					<div class="col-sm-2">
						<input type="text" name="propId2" id="propId2" class="form-control input-sm">
					</div>
					<label for="propNum" class="col-sm-2 control-label">赠送数量</label>
					<div class="col-sm-2">
		                <input type="text" name="propNum2" id="propNum2" class="form-control input-sm">
					</div>
					<label for="addExperience" class="col-sm-2 control-label">赠送经验值</label>
					<div class="col-sm-2">
						<input type="text" name="addExperience2" id="addExperience2" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">
					<label for="awardIcons" class="col-sm-2 control-label">奖励介绍图片</label>
					<div class="col-sm-4">
						<input type="text" name="awardIcons2" id="awardIcons2" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
					<label for="serialEndTime" class="col-sm-2 control-label">序列号领取结束时间</label>
					<div class="col-sm-2">
		                <input type="text" name="serialEndTime2" id="serialEndTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</div>
				</div>
				<div class="form-group">				
					<label for="icon" class="col-sm-2 control-label">图片</label>
					<div class="col-sm-4">
						<input type="text" name="icon2" id="icon2" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
				</div>
				<div class="form-group">				
					<label for="awardDesc" class="col-sm-2 control-label">礼包描述</label>
					<div class="col-sm-10">
						<input type="text" name="awardDesc2" id="awardDesc2" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">				
					<label for="awardRule" class="col-sm-2 control-label">奖励规则</label>
					<div class="col-sm-10">
						<input type="text" name="awardRule2" id="awardRule2" class="form-control input-sm">
					</div>
				</div>
				
				<ul class="nav nav-tabs" role="tablist">
				    <li role="presentation" class="active"><a href="#user2" aria-controls="user2" role="tab" data-toggle="tab">登录注册奖励条件</a></li>
				    <li role="presentation"><a href="#pay2" aria-controls="pay2" role="tab" data-toggle="tab">储值奖励条件</a></li>
				    <li role="presentation"><a href="#game2" aria-controls="game2" role="tab" data-toggle="tab">游戏和角色奖励条件</a></li>
				    <li role="presentation"><a href="#special2" aria-controls="special2" role="tab" data-toggle="tab">特殊奖励条件</a></li>
				    <li role="presentation"><a href="#loss2" aria-controls="loss2" role="tab" data-toggle="tab">老玩家回归奖励条件</a></li>
				    <li role="presentation"><a href="#point2" aria-controls="point2" role="tab" data-toggle="tab">积分任务条件</a></li>
				</ul>
				
				<div class="tab-content">
					&nbsp;&nbsp;
				    <div role="tabpanel" class="tab-pane active" id="user2">
					    <div class="form-group">
							<label for="todayLogin" class="col-sm-2 control-label">今天是否登录</label>
							<div class="col-sm-2">
								 <select name="todayLogin2" id="todayLogin2" class="select2_category">
									<option value=""></option>
									<option value="1">是</option>
									<option value="0">否</option>
								</select>
							</div>
							<label for="loginDayStartTime" class="col-sm-2 control-label">登录开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayStartTime2" id="loginDayStartTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loginDayEndTime" class="col-sm-2 control-label">登录结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayEndTime2" id="loginDayEndTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="loginAddUp" class="col-sm-2 control-label">登入天数是否累计</label>
							<div class="col-sm-2">
								 <select name="loginAddUp2" id="loginAddUp2" class="select2_category">
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
							<label for="loginType" class="col-sm-2 control-label">登录方式</label>
							<div class="col-sm-2">
								<input type="text" name="loginType2" id="loginType2" placeholder="多个用英文逗号隔开：efun,fb" class="form-control">
							</div>
						</div>	
						<div class="form-group">
							<label for="isBeforeGiftStartTime" class="col-sm-2 control-label">活动前注册</label>
							<div class="col-sm-2">
								 <select name="isBeforeGiftStartTime2" id="isBeforeGiftStartTime2" class="select2_category">
								 	<option value=""></option>
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="registerEndTime" class="col-sm-2 control-label">截止注册时间</label>
							<div class="col-sm-2">
								<input type="text" name="registerEndTime2" id="registerEndTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>	
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="pay2">
				    	<div class="form-group">
							<label for="isFirstStore" class="col-sm-2 control-label">是否首充</label>
							<div class="col-sm-2">
								<select name="isFirstStore2" id="isFirstStore2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeAmount" class="col-sm-2 control-label">储值金额</label>
							<div class="col-sm-2">
								<input type="text" name="storeAmount2" id="storeAmount2" class="form-control input-sm">
							</div>
							<label for="stone" class="col-sm-2 control-label">储值游戏币</label>
							<div class="col-sm-2">
								<input type="text" name="stone2" id="stone2" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="stoneRelated" class="col-sm-2 control-label">游戏币关联其他礼包</label>
							<div class="col-sm-2">
								 <select name="stoneRelated2" id="stoneRelated2" class="select2_category">
									<option value="0">不关联</option>
									<option value="1">关联</option>
								</select>
							</div>
							<label for="storeStartTime" class="col-sm-2 control-label">储值开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeStartTime2" id="storeStartTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="storeEndTime" class="col-sm-2 control-label">储值结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeEndTime2" id="storeEndTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="todayStore" class="col-sm-2 control-label">今天是否要储值</label>
							<div class="col-sm-2">
								<select name="todayStore2" id="todayStore2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="payType" class="col-sm-2 control-label">储值金流</label>
							<div class="col-sm-2">
								<input type="text" name="payType2" id="payType2" class="form-control input-sm">
							</div>
							<label for="gameCodes" class="col-sm-2 control-label">储值游戏</label>
							<div class="col-sm-2">
								<input type="text" name="gameCodes2" id="gameCodes2" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="singleOrder" class="col-sm-2 control-label">是否单笔储值</label>
							<div class="col-sm-2">
								<select name="singleOrder2" id="singleOrder2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeDays" class="col-sm-2 control-label">累计储值天数</label>
							<div class="col-sm-2">
								<input type="text" name="storeDays2" id="storeDays2" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="game2">
					    <div class="form-group">
							<label for=playedGames class="col-sm-2 control-label">玩过的游戏</label>
							<div class="col-sm-2">
								<input type="text" name="playedGames2" id="playedGames2" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
							<label for="isOneGame" class="col-sm-2 control-label">游戏条件</label>
							<div class="col-sm-2">
								<select name="isOneGame2" id="isOneGame2" class="select2_category">
									<option value="1">其中之一</option>
									<option value="0">全部</option>
								</select>
							</div>
							<label for="hasGameRole" class="col-sm-2 control-label">是否创角</label>
							<div class="col-sm-2">
								 <select name="hasGameRole2" id="hasGameRole2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="roleLevel" class="col-sm-2 control-label">角色等级</label>
							<div class="col-sm-2">
								<input type="text" name="roleLevel2" id="roleLevel2" class="form-control input-sm">
							</div>
							<label for="limitTime" class="col-sm-2 control-label">时间限制</label>
							<div class="col-sm-2">
								<input type="text" name="limitTime2" id="limitTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="special2">
				    	<div class="form-group">
							<label for="isBindAccount" class="col-sm-2 control-label">是否绑定账号</label>
							<div class="col-sm-2">
								<select name="isBindAccount2" id="isBindAccount2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
									<option value="2">空</option>
								</select>
							</div>
							<label for="isOneDayOnce" class="col-sm-2 control-label">是否每天领取一次</label>
							<div class="col-sm-2">
								<select name="isOneDayOnce2" id="isOneDayOnce2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="newPlayerPermission" class="col-sm-2 control-label">是否只有新用户可领取</label>
							<div class="col-sm-2">
								<select name="newPlayerPermission2" id="newPlayerPermission2" class="select2_category">
									<option value=""></option>
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="isAuthPhone" class="col-sm-2 control-label">是否绑定手机</label>
							<div class="col-sm-2">
								 <select name="isAuthPhone2" id="isAuthPhone2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="isOnePhoneOnce" class="col-sm-2 control-label">相同手机只能领取一次</label>
							<div class="col-sm-2">
								<select name="isOnePhoneOnce2" id="isOnePhoneOnce2" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="loss2">
				    	<div class="form-group">
							<label for="loseStartTime" class="col-sm-2 control-label">流失开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseStartTime2" id="loseStartTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseEndTime" class="col-sm-2 control-label">流失截止时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseEndTime2" id="loseEndTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="nextLoginTime" class="col-sm-2 control-label">回归时间</label>
							<div class="col-sm-2">
								<input type="text" name="nextLoginTime2" id="nextLoginTime2" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseDays" class="col-sm-2 control-label">玩家流失天数</label>
							<div class="col-sm-2">
								<input type="text" name="loseDays2" id="loseDays2" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="point2">
				    	<div class="form-group">
							<label for="taskName" class="col-sm-2 control-label">积分任务名称</label>
							<div class="col-sm-2">
								 <select name="taskName2" id="taskName2" class="select2_category">
									<option value="">请选择</option>
									<option value="downloadApp">下载APP</option>
									<option value="dailySignin">每日签到</option>
									<option value="fbCommentNews">FB评论资讯</option>
									<option value="shareNews">分享资讯</option>
									<option value="firstCompleteEmail">首次完善邮箱</option>
									<option value="firstCompletePhone">首次完善手机</option>
									<option value="firstCompleteIdCard">首次完善身份证件号码</option>
									<option value="firstCompleteBirthday">首次完善生日</option>
									<option value="firstCompleteSex">首次完善性别</option>
									<option value="firstCompleteName">首次完善姓名</option>
									<option value="firstSharePlatform">首次分享平台</option>
									<option value="firstStorePlatform">首次平台储值</option>
									<option value="firstUploadIcon">首次上传头像</option>
									<option value="firstGameVote">首次游戏评论</option>
									<option value="downloadGame">下载游戏</option>
									<option value="focusFB">关注官方FaceBook</option>
									<option value="dailyStore">每天充值</option>
									<option value="gameLevel">游戏等级</option>
									<option value="completePaper">完成调查问卷</option>
									<option value="dailyShare">每日分享</option>
									<option value="shareGame">指定游戏分享</option>
									<option value="seeVideo">观看完整视频</option>
									<option value="likeVideo">点赞视频</option>
								</select>
							</div>
						</div>
				    </div>
				</div>
	  		</div>
		</div>
	</div>
	
	<!-- 礼包3配置 -->
	<div class="row-fluid" style="padding:3px;display:none;" id="panel3">
		<div class="panel panel-default">
	  		<div class="panel-heading">礼包3配置</div>
	  		<div class="panel-body">				
				<div class="form-group">
					<div class="col-sm-4">
						<button type="button" class="btn btn-sm btn-primary" onclick="copyInfo(3);"><i class="icon-copy"></i>&nbsp;复制礼包1</button>
						<button type="button" class="btn btn-sm btn-primary" onclick="importSerial(3);"><i class="icon-upload-alt"></i>&nbsp;导入序列号</button>
						<button type="button" class="btn btn-sm btn-danger" onclick="clearInfo(3);"><i class="icon-remove"></i>&nbsp;清空礼包</button>
						<input type="hidden" id="id3" name="id3" />
					</div>
					<div class="col-sm-4">
						<b><span id="autoIncrId3"></span></b>
					</div>
				</div>
				<div class="form-group">
					<label for="category" class="col-sm-2 control-label">礼包种类</label>
					<div class="col-sm-2">
		                <select name="category3" id="category3" class="select2_category" placeholder="请选择礼包种类">
		                    <option value="task">成就</option>
		                    <option value="pointTask">积分任务</option>
		                    <option value="gift">礼包</option>
		                    <option value="storeGift">储值礼包</option>
		                    <option value="slot_machine">老虎机</option>
		                </select>
					</div>
					<label for="goodsType" class="col-sm-2 control-label">任务类型</label>
					<div class="col-sm-2">
		                <select name="goodsType3" id="goodsType3" class="select2_category" placeholder="请选择任务类型">
		                    <option value=""></option>
						    <option value="task1">任务1（认证手机）</option>
						    <option value="task2">任务2（创建角色）</option>
						    <option value="task3">任务3（账号转换）</option>
						    <option value="task4">任务4（储值任务）</option>
						    <option value="task5">任务5（连续登陆）</option>
						    <option value="task6">任务6（视频点赞）</option>
						    <option value="task7">任务7（活动类型储值）</option>
						    <option value="task8">任务8（活动类型登陆）</option>
						    <option value="task9">任务9（限时老手回归）</option>
						    <option value="task10">任务10（常驻老手回归）</option>
						    <option value="task11">任务11（每日储值）</option>
						    <option value="task12">任务12（每日登陆）</option>
		                </select>
					</div>
					<label for="isSerail" class="col-sm-2 control-label">奖励类型</label>
					<div class="col-sm-2">
		                <select name="isSerail3" id="isSerail3" class="select2_category" placeholder="请选择奖励类型">
						    <option value="1">序列号</option>
						    <option value="0">积分&amp;经验</option>
						    <option value="2">免费点</option>
						    <option value="3">点卡</option>
						    <option value="4">游戏道具</option>
						    <option value="5">游戏内发奖</option>
						    <option value="6">优惠券</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="goodsName" class="col-sm-2 control-label">礼包名称</label>
					<div class="col-sm-2">
						<input type="text" name="goodsName3" id="goodsName3" class="form-control input-sm">
					</div>
					<label for="quantity" class="col-sm-2 control-label">赠送积分值</label>
					<div class="col-sm-2">
						<input type="text" name="quantity3" id="quantity3" class="form-control input-sm">
					</div>
					<label for="needGold" class="col-sm-2 control-label">需扣除积分值</label>
					<div class="col-sm-2">
						<input type="text" name="needGold3" id="needGold3" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">
					<label for="propId" class="col-sm-2 control-label">优惠券/道具ID</label>
					<div class="col-sm-2">
						<input type="text" name="propId3" id="propId3" class="form-control input-sm">
					</div>
					<label for="propNum" class="col-sm-2 control-label">赠送数量</label>
					<div class="col-sm-2">
		                <input type="text" name="propNum3" id="propNum3" class="form-control input-sm">
					</div>
					<label for="addExperience" class="col-sm-2 control-label">赠送经验值</label>
					<div class="col-sm-2">
						<input type="text" name="addExperience3" id="addExperience3" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">
					<label for="awardIcons" class="col-sm-2 control-label">奖励介绍图片</label>
					<div class="col-sm-4">
						<input type="text" name="awardIcons3" id="awardIcons3" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
					<label for="serialEndTime" class="col-sm-2 control-label">序列号领取结束时间</label>
					<div class="col-sm-2">
		                <input type="text" name="serialEndTime3" id="serialEndTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</div>
				</div>
				<div class="form-group">				
					<label for="icon" class="col-sm-2 control-label">图片</label>
					<div class="col-sm-4">
						<input type="text" name="icon3" id="icon3" class="form-control input-sm">
					</div>
					<div class="col-sm-2">
						<input title="添加" class="btn yellow thickbox" type="button" value="上传图片" />
					</div>
				</div>
				<div class="form-group">				
					<label for="awardDesc" class="col-sm-2 control-label">礼包描述</label>
					<div class="col-sm-10">
						<input type="text" name="awardDesc3" id="awardDesc3" class="form-control input-sm">
					</div>
				</div>
				<div class="form-group">				
					<label for="awardRule" class="col-sm-2 control-label">奖励规则</label>
					<div class="col-sm-10">
						<input type="text" name="awardRule3" id="awardRule3" class="form-control input-sm">
					</div>
				</div>
				
				<ul class="nav nav-tabs" role="tablist">
				    <li role="presentation" class="active"><a href="#user3" aria-controls="user3" role="tab" data-toggle="tab">登录注册奖励条件</a></li>
				    <li role="presentation"><a href="#pay3" aria-controls="pay3" role="tab" data-toggle="tab">储值奖励条件</a></li>
				    <li role="presentation"><a href="#game3" aria-controls="game3" role="tab" data-toggle="tab">游戏和角色奖励条件</a></li>
				    <li role="presentation"><a href="#special3" aria-controls="special3" role="tab" data-toggle="tab">特殊奖励条件</a></li>
				    <li role="presentation"><a href="#loss3" aria-controls="loss3" role="tab" data-toggle="tab">老玩家回归奖励条件</a></li>				    
				    <li role="presentation"><a href="#point3" aria-controls="point3" role="tab" data-toggle="tab">积分任务条件</a></li>
				</ul>
				
				<div class="tab-content">
					&nbsp;&nbsp;
				    <div role="tabpanel" class="tab-pane active" id="user3">
					    <div class="form-group">
							<label for="todayLogin" class="col-sm-2 control-label">今天是否登录</label>
							<div class="col-sm-2">
								 <select name="todayLogin3" id="todayLogin3" class="select2_category">
									<option value=""></option>
									<option value="1">是</option>
									<option value="0">否</option>
								</select>
							</div>
							<label for="loginDayStartTime" class="col-sm-2 control-label">登录开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayStartTime3" id="loginDayStartTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loginDayEndTime" class="col-sm-2 control-label">登录结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="loginDayEndTime3" id="loginDayEndTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="loginAddUp" class="col-sm-2 control-label">登入天数是否累计</label>
							<div class="col-sm-2">
								 <select name="loginAddUp3" id="loginAddUp3" class="select2_category">
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
							<label for="loginType" class="col-sm-2 control-label">登录方式</label>
							<div class="col-sm-2">
								<input type="text" name="loginType3" id="loginType3" placeholder="多个用英文逗号隔开：efun,fb" class="form-control">
							</div>
						</div>	
						<div class="form-group">
							<label for="isBeforeGiftStartTime" class="col-sm-2 control-label">活动前注册</label>
							<div class="col-sm-2">
								 <select name="isBeforeGiftStartTime3" id="isBeforeGiftStartTime3" class="select2_category">
								 	<option value=""></option>
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="registerEndTime" class="col-sm-2 control-label">截止注册时间</label>
							<div class="col-sm-2">
								<input type="text" name="registerEndTime3" id="registerEndTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>	
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="pay3">
				    	<div class="form-group">
							<label for="isFirstStore" class="col-sm-2 control-label">是否首充</label>
							<div class="col-sm-2">
								<select name="isFirstStore3" id="isFirstStore3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeAmount" class="col-sm-2 control-label">储值金额</label>
							<div class="col-sm-2">
								<input type="text" name="storeAmount3" id="storeAmount3" class="form-control input-sm">
							</div>
							<label for="stone" class="col-sm-2 control-label">储值游戏币</label>
							<div class="col-sm-2">
								<input type="text" name="stone3" id="stone3" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="stoneRelated" class="col-sm-2 control-label">游戏币关联其他礼包</label>
							<div class="col-sm-2">
								 <select name="stoneRelated3" id="stoneRelated3" class="select2_category">
									<option value="0">不关联</option>
									<option value="1">关联</option>
								</select>
							</div>
							<label for="storeStartTime" class="col-sm-2 control-label">储值开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeStartTime3" id="storeStartTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="storeEndTime" class="col-sm-2 control-label">储值结束时间</label>
							<div class="col-sm-2">
								<input type="text" name="storeEndTime3" id="storeEndTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="todayStore" class="col-sm-2 control-label">今天是否要储值</label>
							<div class="col-sm-2">
								<select name="todayStore3" id="todayStore3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="payType" class="col-sm-2 control-label">储值金流</label>
							<div class="col-sm-2">
								<input type="text" name="payType3" id="payType3" class="form-control input-sm">
							</div>
							<label for="gameCodes" class="col-sm-2 control-label">储值游戏</label>
							<div class="col-sm-2">
								<input type="text" name="gameCodes3" id="gameCodes3" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
						</div>
						<div class="form-group">
							<label for="singleOrder" class="col-sm-2 control-label">是否单笔储值</label>
							<div class="col-sm-2">
								<select name="singleOrder3" id="singleOrder3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="storeDays" class="col-sm-2 control-label">累计储值天数</label>
							<div class="col-sm-2">
								<input type="text" name="storeDays3" id="storeDays3" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="game3">
					    <div class="form-group">
							<label for=playedGames class="col-sm-2 control-label">玩过的游戏</label>
							<div class="col-sm-2">
								<input type="text" name="playedGames3" id="playedGames3" placeholder="填写gameCode，多个用英文逗号隔开" class="form-control input-sm">
							</div>
							<label for="isOneGame" class="col-sm-2 control-label">游戏条件</label>
							<div class="col-sm-2">
								<select name="isOneGame3" id="isOneGame3" class="select2_category">
									<option value="1">其中之一</option>
									<option value="0">全部</option>
								</select>
							</div>
							<label for="hasGameRole" class="col-sm-2 control-label">是否创角</label>
							<div class="col-sm-2">
								 <select name="hasGameRole3" id="hasGameRole3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="roleLevel" class="col-sm-2 control-label">角色等级</label>
							<div class="col-sm-2">
								<input type="text" name="roleLevel3" id="roleLevel3" class="form-control input-sm">
							</div>
							<label for="limitTime" class="col-sm-2 control-label">时间限制</label>
							<div class="col-sm-2">
								<input type="text" name="limitTime3" id="limitTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="special3">
				    	<div class="form-group">
							<label for="isBindAccount" class="col-sm-2 control-label">是否绑定账号</label>
							<div class="col-sm-2">
								<select name="isBindAccount3" id="isBindAccount3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
									<option value="2">空</option>
								</select>
							</div>
							<label for="isOneDayOnce" class="col-sm-2 control-label">是否每天领取一次</label>
							<div class="col-sm-2">
								<select name="isOneDayOnce3" id="isOneDayOnce3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="newPlayerPermission" class="col-sm-2 control-label">是否只有新用户可领取</label>
							<div class="col-sm-2">
								<select name="newPlayerPermission3" id="newPlayerPermission3" class="select2_category">
									<option value=""></option>
									<option value="false">否</option>
									<option value="true">是</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="isAuthPhone" class="col-sm-2 control-label">是否绑定手机</label>
							<div class="col-sm-2">
								 <select name="isAuthPhone3" id="isAuthPhone3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
							<label for="isOnePhoneOnce" class="col-sm-2 control-label">相同手机只能领取一次</label>
							<div class="col-sm-2">
								<select name="isOnePhoneOnce3" id="isOnePhoneOnce3" class="select2_category">
									<option value="0">否</option>
									<option value="1">是</option>
								</select>
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="loss3">
				    	<div class="form-group">
							<label for="loseStartTime" class="col-sm-2 control-label">流失开始时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseStartTime3" id="loseStartTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseEndTime" class="col-sm-2 control-label">流失截止时间</label>
							<div class="col-sm-2">
								<input type="text" name="loseEndTime3" id="loseEndTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
						</div>
						<div class="form-group">
							<label for="nextLoginTime" class="col-sm-2 control-label">回归时间</label>
							<div class="col-sm-2">
								<input type="text" name="nextLoginTime3" id="nextLoginTime3" class="form-control input-sm" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
							</div>
							<label for="loseDays" class="col-sm-2 control-label">玩家流失天数</label>
							<div class="col-sm-2">
								<input type="text" name="loseDays3" id="loseDays3" class="form-control input-sm">
							</div>
						</div>
				    </div>
				    
				    <div role="tabpanel" class="tab-pane" id="point3">
				    	<div class="form-group">
							<label for="taskName" class="col-sm-2 control-label">积分任务名称</label>
							<div class="col-sm-2">
								 <select name="taskName3" id="taskName3" class="select2_category">
									<option value="">请选择</option>
									<option value="downloadApp">下载APP</option>
									<option value="dailySignin">每日签到</option>
									<option value="fbCommentNews">FB评论资讯</option>
									<option value="shareNews">分享资讯</option>
									<option value="firstCompleteEmail">首次完善邮箱</option>
									<option value="firstCompletePhone">首次完善手机</option>
									<option value="firstCompleteIdCard">首次完善身份证件号码</option>
									<option value="firstCompleteBirthday">首次完善生日</option>
									<option value="firstCompleteSex">首次完善性别</option>
									<option value="firstCompleteName">首次完善姓名</option>
									<option value="firstSharePlatform">首次分享平台</option>
									<option value="firstStorePlatform">首次平台储值</option>
									<option value="firstUploadIcon">首次上传头像</option>
									<option value="firstGameVote">首次游戏评论</option>
									<option value="downloadGame">下载游戏</option>
									<option value="focusFB">关注官方FaceBook</option>
									<option value="dailyStore">每天充值</option>
									<option value="gameLevel">游戏等级</option>
									<option value="completePaper">完成调查问卷</option>
									<option value="dailyShare">每日分享</option>
									<option value="shareGame">指定游戏分享</option>
									<option value="seeVideo">观看完整视频</option>
									<option value="likeVideo">点赞视频</option>
								</select>
							</div>
						</div>
				    </div>
				</div>
	  		</div>
		</div>
	</div>
	
	<div class="row-fluid">
		<div class="text-center">
			<button type="button" id="add_gift" class="btn btn-sm btn-default" onclick="moreInfo();"><i class="icon-plus"></i>&nbsp;<span id="moreSpan">多礼包</span></button>
			<button type="button" id="save_data" class="btn btn-sm btn-primary"><i class="icon-save"></i>&nbsp;保存</button>
		</div>
	</div>
	<br/>
</form>
	
<!-- 导入开始 -->
<div id="upload_data" class="modal fade" tabindex="-1" data-width="760">
	<div class="modal-dialog" role="document">
    	<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
				<h4><b>导入礼包码</b></h4>
			</div>
			<div class="modal-body">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" id="upload_info">
					<tr>
						<td>
						    <iframe style="width:0; height:0;" name="myFrames" src="about:blank"></iframe>
						    <div class="file-box">
							   <form action="achievementKorea_importgiftBagCode.shtml?area=<s:property value='#request.area'/>" id="importgiftBagCode" method="post" name="importgiftBagCode" target="myFrames" enctype="multipart/form-data">
							   		<input type="hidden" name="updategoodsid" id="updategoodsid" />
							   		<input type="hidden" name="updategoodstype" id="updategoodstype" />
							   		<input type="text" id='giftBagCodeExcel' class="m-wrap" style="padding:3px 0px;width:230px;"/> 
							   		<input type="file" name="file" class="file" style="padding:2px 2px;width:274px;left:0px;height:24px;" onchange="document.getElementById('giftBagCodeExcel').value=this.value" />
							   		<input type="button" class="uploadbtn btn" value="浏览..." style="padding:2px 3px;"/>  
									<input type="button" name="button" id="uploadExcel" class="uploadbtn btn" style="padding:2px 7px;" value="上传" />
							    </form>
							 </div>
						</td>
						<td>
							<a style="text-decoration:none;color: #0066CC" href="#">下载模板</a>
						</td>
					</tr>
				</table>
			</div>
			<div class="modal-footer">
				<button type="button" data-dismiss="modal" class="btn">取消</button>
			</div>
		</div>
	</div>
</div>
<!-- 导入结束 -->
	
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/select2.min.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript">	
	$(function() {
	    $('.select2_category').select2({
            placeholder: "Select an option",
            width: '100%',
            allowClear: true
        });
	});
	
	function importSerial(i) {
		$("#upload_data").modal();
	}
	
	function clearInfo(i) {
		if (confirm("确定要清空礼包信息吗？")) {
			$("#panel" + i + " input[type=text]").val("");
			$("#panel" + i + " select").find("option:first").each(function() {
				$(this).attr("selected",true).trigger("change");
			});
		}
	}
	
	function copyInfo(i) {
		$("#panel" + i + " .input-sm").each(function() {
			$(this).val($("#" + this.id.replace(i, 1)).val());
		});
		$("#panel" + i + " select").each(function() {
			$(this).val($("#" + this.id.replace(i, 1)).val()).trigger("change");
		});
	}
	
	function moreInfo() {
		var show = $('#panel2').css('display');
		$('#panel2').css('display', show=='block'?'none':'block');

		show = $('#panel3').css('display');
		$('#panel3').css('display', show=='block'?'none':'block');
		
		$("#moreSpan").html($("#moreSpan").html()=='多礼包'?'单礼包':'多礼包');
		$("#more").val($("#moreSpan").html()=='多礼包'?'one':'three');
	}
</script>

</body>
</html>